package org.thoughtworks.selenium.flex;

import com.thoughtworks.selenium.Selenium;
import com.thoughtworks.selenium.DefaultSelenium;
import org.openqa.selenium.server.SeleniumServer;
import junit.framework.TestCase;

public class AbstractFlexPITestCase extends TestCase {
    protected Selenium selenium;
    private SeleniumServer ss;


    public void setUp() throws Exception {
        //System.setProperty("selenium.forcedBrowserMode", "*firefox");
        System.setProperty("selenium.proxyInjectionMode", "true");
        ss = new SeleniumServer();
        ss.start();
        String url = "http://localhost:4444";
        selenium = new DefaultSelenium("localhost", 4444, "*pifirefox", url);
        selenium.start();
    }

    protected void tearDown() throws Exception {
        selenium.stop();
        ss.stop();
    }
}
